import request from "./request"

//企业后台接口


//企业视频标题更新
export function upTitle(id,title){
    return request({
        url:'/company/upTitle/'+id,
        params:{
            title
        },
        method:'put'
    })
}

//企业拿到自己的视频列表
export function getVideoForCompany(cid){
    return request({
        url:'/company/data/'+cid
    })
}

//删除视频
export function delVideo(id){
    return request({
        url:'/company/delData/'+id,
        method:'delete'
    })
}

//删除题目
export function delPractice(id){
    return request({
        url:'/company/delPractice/'+id,
        method:'delete'
    })
}
